# 将一个文本文件拷贝一份，并命名为aa.py
file = open("a.py", mode="r", encoding="utf-8")
file2 = open("aa.py", mode="w", encoding="utf-8")
file2.write(file.read())

